import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '主项目',
    align: "center", resizable: true,
    dataIndex: 'projectId_dictText'
  },
  {
    title: '子项目',
    align: "center", resizable: true,
    dataIndex: 'subProjectId_dictText'
  },
  {
    title: '任务状态',
    align: "center", resizable: true,
    dataIndex: 'status_dictText'
  },
  {
    title: '名称',
    align: "center", resizable: true,
    dataIndex: 'taskName'
  },
  {
    title: '数量',
    align: "center", resizable: true,
    dataIndex: 'quantity'
  },
  {
    title: '单位',
    align: "center", resizable: true,
    dataIndex: 'unit'
  },
  {
    title: '主材费用',
    align: "center", resizable: true,
    dataIndex: 'mainPrice'
  },
  {
    title: '辅材费用',
    align: "center", resizable: true,
    dataIndex: 'auxiliaryPrice'
  },
  {
    title: '人工费用',
    align: "center", resizable: true,
    dataIndex: 'laborPrice'
  },
  {
    title: '总报价',
    align: "center", resizable: true,
    dataIndex: 'totalContractor'
  },
  {
    title: '备注',
    align: "center", resizable: true,
    dataIndex: 'remark'
  },
];

// 高级查询数据
export const superQuerySchema = {
  projectId: {title: '主项目',order: 0,view: 'list', type: 'string',dictTable: "c_project_application", dictCode: 'id', dictText: 'project_name',},
  subProjectId: {title: '子项目',order: 1,view: 'list', type: 'string',dictTable: "c_sub_project", dictCode: 'id', dictText: 'sub_project_name',},
  status: {title: '任务状态',order: 2,view: 'list', type: 'string',dictCode: 'sub_project_status',},
  taskName: {title: '名称',order: 3,view: 'text', type: 'string',},
  quantity: {title: '数量',order: 4,view: 'number', type: 'number',},
  unit: {title: '单位',order: 5,view: 'text', type: 'string',},
  mainPrice: {title: '主材费用',order: 6,view: 'number', type: 'number',},
  auxiliaryPrice: {title: '辅材费用',order: 7,view: 'number', type: 'number',},
  laborPrice: {title: '人工费用',order: 8,view: 'number', type: 'number',},
  totalContractor: {title: '总报价',order: 9,view: 'number', type: 'number',},
  remark: {title: '备注',order: 10,view: 'textarea', type: 'string',},
};
